import { Component, OnInit } from '@angular/core';
declare var luckysheet: any;
@Component({
  selector: 'app-excel-test',
  templateUrl: './excel-test.html'
})
export class ExcelTestComponent implements OnInit {
  ngOnInit(): void {
    this.initExcel();
  }

  initExcel() {
    const options = {
      container: 'luckysheet', //luckysheet为容器id
      title: 'Luckysheet Demo', // 设定表格名称
      lang: 'zh' // 设定表格语言
    };
    //
    luckysheet.create(options);
  }
}
